package crivia.ecp.ebp;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import crivia.ecp.carry.eb.MoreMenu;

import weaver.conn.RecordSet;
import weaver.general.BaseBean;
import weaver.general.KtreeHelp;
import weaver.general.Util;
import weaver.hrm.User;
import weaver.systeminfo.RightClickMenu;
import weaver.systeminfo.SystemEnv;

public class E8BP_moreMenu {

	@SuppressWarnings({ "unused", "rawtypes" })
	public static void moreMenu(User user , MoreMenu[] moreMenus , List<MoreMenu> menus 
			, HttpServletRequest request , HttpServletResponse response) throws Exception {

		javax.servlet.http.HttpSession session = request.getSession(true);
		response.setContentType("text/html");
		PrintWriter out = response.getWriter();

		

		int isSysadmin = 0;
		RecordSet rssysadminmenu = new RecordSet();
		rssysadminmenu
				.executeSql("select count(*) from hrmresourcemanager where id="
						+ user.getUID());
		if (rssysadminmenu.next()) {
			isSysadmin = rssysadminmenu.getInt(1);
		}
		int RCMenuWidth = 160;
		int RCMenuHeightStep = 24;
		int RCMenuHeight = 0;
		String RCMenu = "";
		String systemAdminMenu = "";
		int hiddenmenu = 1;

		String RCFromPage = ""; // \u00e9\u009c\u0080\u00e8\u00a6\u0081\u00e5\u00b1\u008f\u00e8\u0094\u00bd\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e7\u009a\u0084\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e5\u0090\u008d\u00e7\u00a7\u00b0\u00ef\u00bc\u008c\u00e7\u0094\u00a8\u00e4\u00ba\u008e\u00e4\u00bd\u00bf\u00e7\u0094\u00a8RightClickMenu1.jsp\u00e9\u009c\u0080\u00e8\u00a6\u0081\u00e5\u00b1\u008f\u00e8\u0094\u00bd\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e7\u009a\u0084\u00e9\u00a1\u00b5\u00e9\u009d\u00a2
		int loadTopMenu = 1; // \u00e5\u0085\u00b3\u00e9\u0097\u00ad\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e5\u0090\u008e\u00ef\u00bc\u008c\u00e6\u0098\u00af\u00e5\u0090\u00a6\u00e5\u008a\u00a0\u00e8\u00bd\u00bd\u00e5\u00a4\u00b4\u00e9\u0083\u00a8\u00e6\u0093\u008d\u00e4\u00bd\u009c\u00e6\u008c\u0089\u00e9\u0092\u00ae\u00ef\u00bc\u009b1-\u00e5\u008a\u00a0\u00e8\u00bd\u00bd\u00ef\u00bc\u008c0-\u00e4\u00b8\u008d\u00e5\u008a\u00a0\u00e8\u00bd\u00bd\u00ef\u00bc\u008c\u00e7\u008e\u00b0\u00e5\u009c\u00a8\u00e7\u0094\u00a8\u00e4\u00ba\u008e\u00e5\u00a4\u009a\u00e9\u0083\u00a8\u00e9\u0097\u00a8\u00e9\u0080\u0089\u00e6\u008b\u00a9\u00e6\u00a1\u0086\u00e3\u0080\u0082
		int defaultMenuCount = 0;

		int showColMenuIndex = 0;

		systemAdminMenu += "{"
				+ SystemEnv.getHtmlLabelName(32535, user.getLanguage())
				+ ",javascript:showColDialog(),_self} ";
		RCMenuHeight += RCMenuHeightStep;
		defaultMenuCount++;

		/**
		 * \u00e6\u00a3\u0080\u00e6\u00b5\u008b\u00e7\u00b3\u00bb\u00e7
		 * \u00bb
		 * \u009f\u00e9\u0085\u008d\u00e7\u00bd\u00ae\u00ef\u00bc\u008c
		 * \u00e6\u009f\u00a5\u00e7\u009c\u008b\u00e6\u0098
		 * \u00af\u00e5\u0090
		 * \u00a6\u00e4\u00bd\u00bf\u00e7\u0094\u00a8\u00e5\u008f
		 * \u00b3\u00e9\u0094
		 * \u00ae\u00e8\u008f\u009c\u00e5\u008d\u0095\u00ef
		 * \u00bc\u008c\u00e5
		 * \u00a6\u0082\u00e6\u009e\u009c\u00e4\u00bd\u00bf
		 * \u00e7\u0094\u00a8\u00e5\u008f\u00b3\u00e9\u0094\u00ae
		 * \u00e8\u008f\u009c\u00e5\u008d\u0095\u00ef
		 * \u00bc\u008c\u00e6\u0098
		 * \u00af\u00e5\u0090\u00a6\u00e6\u0098\u00be
		 * \u00e7\u00a4\u00ba\u00e5\u00a4\u008d\u00e5\u0088
		 * \u00b6\u00e5\u0092\u008c\u00e9\u00bb\u008f\u00e8\u00b4\u00b4
		 * \u00e7\u009a\u0084\u00e6\u008c\u0089\u00e9\u0092\u00ae
		 */
		BaseBean baseBeanRigthMenu = new BaseBean();
		int userightmenu = 1;
		int showCopyAndPaste = 0;
		boolean closeRightMenu = false;
		try {
			userightmenu = Util.getIntValue(baseBeanRigthMenu.getPropValue(
					"systemmenu", "userightmenu"), 1);
			if (userightmenu != 1) {
				userightmenu = 1;
				closeRightMenu = true;

				String reqstrUrl = request.getRequestURL().toString();
				// -------\u00e8\u00a1\u00a8\u00e5\u008d\u0095\u00e5\u00bb\u00ba\u00e6\u00a8\u00a1\u00e9\u0083\u00a8\u00e5\u0088\u0086\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e7\u0089\u00b9\u00e6\u00ae\u008a\u00e5\u00a4\u0084\u00e7\u0090\u0086---start-------
				if (reqstrUrl.toLowerCase().indexOf("/formmode/") != -1
						|| reqstrUrl.toLowerCase().indexOf("/mobilemode/") != -1) {
					closeRightMenu = false;
					List<String> formmodeViewPageList = new ArrayList<String>();
					formmodeViewPageList
							.add("/formmode/view/AddFormMode.jsp");
					formmodeViewPageList
							.add("/formmode/view/AddFormModeIframe.jsp");
					formmodeViewPageList
							.add("/formmode/interfaces/ModeDataBatchImport.jsp");
					formmodeViewPageList
							.add("/formmode/search/CustomSearchBySimple.jsp");
					formmodeViewPageList
							.add("/formmode/search/CustomSearchBySimpleIframe.jsp");
					formmodeViewPageList
							.add("/formmode/report/ReportConditionIframe.jsp");
					formmodeViewPageList
							.add("/formmode/report/ReportResult.jsp");
					formmodeViewPageList
							.add("/formmode/view/ModeShareAddMore.jsp");
					formmodeViewPageList
							.add("/formmode/view/ModeShareIframe.jsp");
					formmodeViewPageList
							.add("/formmode/browser/CommonMultiBrowser.jsp");
					formmodeViewPageList
							.add("/formmode/browser/CommonSingleBrowser.jsp");
					formmodeViewPageList
							.add("/formmode/tree/treebrowser/CustomTreeBrowser.jsp");
					formmodeViewPageList
							.add("/formmode/tree/treebrowser/CustomTreeBrowserIframe.jsp");
					formmodeViewPageList
							.add("/formmode/view/ModeLogView.jsp");
					formmodeViewPageList
							.add("/formmode/view/ModeLogViewIframe.jsp");
					for (int formmodeListIndexn = 0; formmodeListIndexn < formmodeViewPageList
							.size(); formmodeListIndexn++) {
						if (reqstrUrl.indexOf(formmodeViewPageList
								.get(formmodeListIndexn)) != -1) {
							closeRightMenu = true;
							break;
						}
					}
				}
				// -------\u00e8\u00a1\u00a8\u00e5\u008d\u0095\u00e5\u00bb\u00ba\u00e6\u00a8\u00a1\u00e9\u0083\u00a8\u00e5\u0088\u0086\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e7\u0089\u00b9\u00e6\u00ae\u008a\u00e5\u00a4\u0084\u00e7\u0090\u0086----end--------
			}
			showCopyAndPaste = Util.getIntValue(baseBeanRigthMenu
					.getPropValue("systemmenucopy", "showCopyAndPaste"), 0);
		} catch (Exception e) {

		}

		String isIEBrowser = (String) session.getAttribute("browser_isie"); // \u00e6\u0098\u00af\u00e5\u0090\u00a6\u00e4\u00b8\u00baIE\u00e6\u00b5\u008f\u00e8\u00a7\u0088\u00e5\u0099\u00a8
		boolean hasSystemAdminMenu = false;
		if (userightmenu == 1) {

			String reqstrUrl = request.getRequestURL().toString();

			if (reqstrUrl.indexOf("/workflow/request/AddRequestIframe.jsp") != -1
					|| reqstrUrl
							.indexOf("/workflow/request/ManageRequestNoFormIframe.jsp") != -1
					|| reqstrUrl
							.indexOf("/workflow/request/ManageRequestNoFormModeIframe.jsp") != -1
					|| reqstrUrl
							.indexOf("/workflow/request/ManageRequestNoFormBillIframe.jsp") != -1
					|| reqstrUrl
							.indexOf("/workflow/request/ViewRequestIframe.jsp") != -1) {

				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(28111,
								user.getLanguage())
						+ ",javascript:__openFavouriteBrowser(-9),_self} ";
				RCMenuHeight += RCMenuHeightStep;
				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(275,
								user.getLanguage())
						+ ",javascript:parent.showHelp(),_self} ";
				RCMenuHeight += RCMenuHeightStep;

			} else if (reqstrUrl.indexOf("/workflow/") != -1) {

				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(28111,
								user.getLanguage())
						+ ",javascript:__openFavouriteBrowser(),_self} ";
				RCMenuHeight += RCMenuHeightStep;
				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(275,
								user.getLanguage())
						+ ",javascript:__showHelp(),_self} ";
				RCMenuHeight += RCMenuHeightStep;

			} else {

				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(28111,
								user.getLanguage())
						+ ",javascript:openFavouriteBrowser(),_self} ";
				RCMenuHeight += RCMenuHeightStep;
				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(275,
								user.getLanguage())
						+ ",javascript:showHelp(),_self} ";
				RCMenuHeight += RCMenuHeightStep;

			}

			if (showCopyAndPaste == 1 && "true".equals(isIEBrowser)) { // \u00e9\u009d\u009eIE\u00e6\u009a\u0082\u00e4\u00b8\u008d\u00e6\u0094\u00af\u00e6\u008c\u0081\u00e7\u00b2\u0098\u00e8\u00b4\u00b4\u00e5\u00a4\u008d\u00e5\u0088\u00b6
				hasSystemAdminMenu = true;
				systemAdminMenu += "{__splitHR__,__hr__,_self} ";
				RCMenuHeight += 1;
				systemAdminMenu += "{"
						+ SystemEnv
								.getHtmlLabelName(77, user.getLanguage())
						+ "(Ctrl+C),javascript:onRCMenu_copy(),_self} ";
				RCMenuHeight += RCMenuHeightStep;
				systemAdminMenu += "{"
						+ SystemEnv.getHtmlLabelName(16180,
								user.getLanguage())
						+ "(Ctrl+V),javascript:onRCMenu_plaster(),_self} ";
				RCMenuHeight += RCMenuHeightStep;
				defaultMenuCount = defaultMenuCount + 2;

			}
		}

		if (isSysadmin > 0) { // \u00e7\u0094\u00a8\u00e7\u00b3\u00bb\u00e7\u00bb\u009f\u00e7\u00ae\u00a1\u00e7\u0090\u0086\u00e5\u0091\u0098sysadmin\u00e7\u0099\u00bb\u00e9\u0099\u0086\u00e7\u00b3\u00bb\u00e7\u00bb\u009f\u00e5\u008f\u00af\u00e6\u009f\u00a5\u00e7\u009c\u008b\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e5\u009c\u00b0\u00e5\u009d\u0080
			if (!hasSystemAdminMenu) {
				systemAdminMenu += "{__splitHR__,__hr__,_self} ";
				RCMenuHeight += 1;
			}
			systemAdminMenu += "{"
					+ SystemEnv.getHtmlLabelName(21682, user.getLanguage())
					+ ",javascript:viewSourceUrl(),_self} ";
			RCMenuHeight += RCMenuHeightStep;
			defaultMenuCount++;
		}
		


		if (null != moreMenus)
			for (MoreMenu moreMenu : moreMenus){
				if (null == moreMenu){
					return;
				}
				RCMenu += moreMenu.toString();
				RCMenuHeight += RCMenuHeightStep ;
			}
		if (null != menus)
			for (MoreMenu moreMenu : menus){
				if (null == moreMenu){
					return;
				}
				RCMenu += moreMenu.toString();
				RCMenuHeight += RCMenuHeightStep ;
			}
		

		out.write(_jsp_string0, 0, _jsp_string0.length);

		/**
		 * \u00e8\u008e\u00b7\u00e5\u008f\u0096\u00e5\u00bd\u0093
		 * \u00e5\u0089\u008d\u00e4
		 * \u00b8\u00bb\u00e9\u00a2\u0098\u00e5\u008f\u008a\u00e5
		 * \u00af\u00b9
		 * \u00e5\u00ba\u0094\u00e7\u009a\u00ae\u00e8\u0082\u00a4\u00ef
		 * \u00bc\u0088init.jsp\u00e4\u00b8\u00adsetting\u00ef\u00bc\u0089
		 */
		String tmpCurTheme = "ecology8";// (String)session.getAttribute("SESSION_TEMP_CURRENT_THEME");
		String tmpCurskin = "default";// (String)session.getAttribute("SESSION_CURRENT_SKIN");

		String iframeShtml = "";
		// iframeShtml +=
		// "<table border=0 cellspacing=0 cellpadding=0 id=menuTable name=menuTable"+menuTableClassStr+">";

		if (userightmenu == 1) {
			iframeShtml += "<div id='menuTable' name='menuTable' unselectable='on' class='b-m-mpanel' style='background-color:rgb(249,249,249);'>";
		} else {
			iframeShtml += "<div id='menuTable' name='menuTable'  style='padding-left:5px;padding-right:5px;background-color:rgb(249,249,249);'>";
		}
		RCMenu = Util.StringReplace(RCMenu, "javaScript", "javascript");
		boolean loadRcMenu = true;
		if (hiddenmenu == 1 && userightmenu == 1)
			loadRcMenu = false;

		ArrayList RCMENUArray = new ArrayList();
		String[] rcm = RCMenu.split("}");
		for (int __i = 0; __i < rcm.length; __i++) {
			showColMenuIndex++;
			if (__i == rcm.length - 1
					&& !Util.null2String(rcm[__i]).trim().equals("")) {
				showColMenuIndex++;
			}
		}
		showColMenuIndex--;
		if (showColMenuIndex == -1)
			showColMenuIndex = 0;
		RCMenu += systemAdminMenu;
		RCMenu = RCMenu.trim();
		int imgIndex = 0;
		if (!RCMenu.equals("")) {

			// \u00e7\u0094\u00b1\u00e5\u008e\u009f\u00e6\u009d\u00a5\u00e7\u009a\u0084apXPDropDown.class\u00e8\u00bd\u00ac\u00e4\u00b8\u00ba\u00e7\u009b\u00b4\u00e6\u008e\u00a5\u00e7\u0094\u00a8Button\u00ef\u00bc\u008c2003-11-18\u00e6\u009d\u00a8\u00e5\u009b\u00bd\u00e7\u0094\u009f\u00e3\u0080\u0082
			RCMENUArray = Util.TokenizerString(RCMenu, "}");
			if (RCMENUArray == null
					|| RCMENUArray.size() <= defaultMenuCount
					|| loadTopMenu == 0) {
				loadRcMenu = false;
			}

			int itemNumTemp = 0;
			String btnNameTemp = "";
			String urlTemp = "";
			String targetTemp = "";
			String btnPageName = "";

			for (int itemNum = 0; itemNum < RCMENUArray.size(); itemNum++) {
				String RCMENUTemp = Util.null2String((String) RCMENUArray
						.get(itemNum));
				RCMENUTemp = RCMENUTemp.trim();
				if (!RCMENUTemp.equals("")) {
					RCMENUTemp += "}";
					if (RCMENUTemp.indexOf("{-}") == -1)// \u00e5\u00a6\u0082\u00e6\u009e\u009c\u00e6\u0098\u00af\u00e5\u008e\u009f\u00e6\u009d\u00a5\u00e9\u0082\u00a3\u00e6\u008f\u0092\u00e4\u00bb\u00b6\u00e7\u009a\u0084\u00e7\u009a\u0084\u00e9\u009a\u0094\u00e7\u00ba\u00bf\u00e5\u008d\u00b3\u00e5\u00ad\u0097\u00e7\u00ac\u00a6\u00e4\u00b8\u00b2\u00e6\u009c\u0089{-}\u00e5\u00b0\u00b1\u00e4\u00b8\u008d\u00e5\u0086\u008d\u00e7\u0094\u009f\u00e6\u0088\u0090\u00e4\u00ba\u0086
					{
						itemNumTemp++;
						RCMENUTemp = RCMENUTemp.substring(1,
								RCMENUTemp.length() - 1); // \u00e5\u008e\u00bb\u00e6\u008e\u0089\u00e5\u00b7\u00a6\u00e5\u008f\u00b3\u00e7\u009a\u0084{}
						RCMENUTemp = RCMENUTemp.trim();
						// ArrayList RCMenuItemArray =
						// Util.TokenizerString(RCMENUTemp,",")
						// ;//\u00e6\u008a\u008a\u00e6\u00af\u008f\u00e4\u00b8\u0080\u00e9\u00a1\u00b9\u00e9\u0087\u008c\u00e7\u009a\u0084\u00e5\u008f\u0082\u00e6\u0095\u00b0\u00e5\u0088\u0086\u00e8\u00a7\u00a3\u00e5\u0087\u00ba\u00e6\u009d\u00a5
						// 2004-04-22\u00e6\u009d\u00a8\u00e5\u009b\u00bd\u00e7\u0094\u009f\u00ef\u00bc\u008c\u00e6\u009b\u00b4\u00e6\u0094\u00b9\u00e6\u00af\u008f\u00e4\u00b8\u00aa\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e9\u00a1\u00b9\u00e7\u009a\u0084\u00e5\u0088\u0086\u00e8\u00a7\u00a3\u00e6\u0096\u00b9\u00e5\u00bc\u008f\u00ef\u00bc\u008c\u00e6\u008a\u008aUtil.TokenizerString\u00e6\u0096\u00b9\u00e5\u00bc\u008f\u00e6\u008d\u00a2\u00e6\u0088\u0090substring\u00e8\u00bf\u0099\u00e6\u00a0\u00b7\u00e5\u00b0\u00b1\u00e8\u0083\u00bd\u00e5\u009b\u00ba\u00e5\u00ae\u009a\u00e4\u00b8\u00ba3\u00e9\u00a1\u00b9\u00e5\u008d\u00b3\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e5\u0090\u008d\u00e3\u0080\u0081\u00e5\u009c\u00b0\u00e5\u009d\u0080\u00e3\u0080\u0081\u00e7\u009b\u00ae\u00e6\u00a0\u0087\u00ef\u00bc\u008c\u00e4\u00bd\u00bf\u00e5\u00be\u0097javascript\u00e6\u0096\u00b9\u00e6\u00b3\u0095\u00e8\u0083\u00bd\u00e5\u00a4\u009f\u00e4\u00bd\u00bf\u00e7\u0094\u00a8\u00e5\u00a4\u009a\u00e4\u00b8\u00aa\u00e5\u008f\u0082\u00e6\u0095\u00b0
						btnNameTemp = RCMENUTemp.substring(0,
								RCMENUTemp.indexOf(","));
						// (String)RCMenuItemArray.get(0);//\u00e5\u0090\u008d\u00e7\u00a7\u00b0
						btnNameTemp = btnNameTemp.trim();
						urlTemp = RCMENUTemp.substring(
								(RCMENUTemp.indexOf(",") + 1),
								RCMENUTemp.lastIndexOf(",")); // (String)RCMenuItemArray.get(1);//\u00e5\u009c\u00b0\u00e5\u009d\u0080\u00e6\u0088\u0096javascript
																// function
						urlTemp = urlTemp.trim();
						targetTemp = RCMENUTemp.substring(
								(RCMENUTemp.lastIndexOf(",") + 1),
								RCMENUTemp.length()); // (String)RCMenuItemArray.get(2);//target
						targetTemp = targetTemp.trim();
						btnPageName = RCMENUTemp.substring(
								RCMENUTemp.lastIndexOf(":") + 1,
								RCMENUTemp.lastIndexOf(",") - 2);
						boolean isSplitLine = false;
						if (urlTemp.equals("__hr__")) {
							isSplitLine = true;
						} else if (urlTemp.indexOf("javascript:") == -1)// \u00e5\u00a6\u0082\u00e6\u009e\u009c\u00e7\u009b\u00b4\u00e6\u008e\u00a5\u00e7\u00bb\u0099url\u00e6\u0097\u00b6\u00e5\u00a4\u0084\u00e7\u0090\u0086
						{
							if (targetTemp.equals("_blank"))
								urlTemp = "javascript:window.open('"
										+ urlTemp + "','')";
							else if (targetTemp.equals("_parent"))
								urlTemp = "javascript:parent.parent.location.href=\\\""
										+ urlTemp + "\\\"";
							else if ((targetTemp.equals("_self"))
									|| (targetTemp.equals("_top")))
								urlTemp = "javascript:parent.location.href=\\\""
										+ urlTemp + "\\\"";
							else
								urlTemp = "javascript:parent." + targetTemp
										+ ".location.href=\\\"" + urlTemp
										+ "\\\"";
						} else {
							if (urlTemp.indexOf("javascript:location=") != -1)
								urlTemp = "javascript:parent.location.href=\\\""
										+ urlTemp.substring(21,
												urlTemp.length() - 1)
										+ "\\\"";
							else if (urlTemp
									.indexOf("javascript:location.href=") != -1)
								urlTemp = "javascript:parent.location.href=\\\""
										+ urlTemp.substring(26,
												urlTemp.length() - 1)
										+ "\\\"";
							else
								urlTemp = "javascript:parent."
										+ urlTemp.substring(11);
						}
						String imgPath = RightClickMenu.getIconPath(
								itemNumTemp, btnNameTemp);
						if ("".equals(imgPath)) {
							imgIndex++;
							if (imgIndex > 9)
								imgIndex = 0;
						}
						if (isSplitLine) {
							iframeShtml += "<div style='height:1px;background-color:#d8d8d8;margin-right:8px;margin-left:8px;'></div>";
						} else {
							if (userightmenu == 1) {
								if (btnPageName.equals("_table.firstPage")
										|| btnPageName
												.equals("_table.prePage")
										|| btnPageName
												.equals("_table.nextPage")
										|| btnPageName
												.equals("_table.lastPage")) {
									/*
									 * iframeShtml+="<div id='menuItemDivId"+
									 * itemNum +
									 * "' unselectable='on' class='b-m-item'  onmouseover=\\\"this.className=\\\'"
									 * +"b-m-ifocus"+
									 * "\\\'\\\" onmouseout=\\\"this.className=\\\'"
									 * +"b-m-item"+
									 * "\\\'\\\"   ><div class='b-m-ibody' unselectable='on'><nobr unselectable='on'>"
									 * ; iframeShtml+=
									 * "<img width=16  src='/wui/theme/" +
									 * tmpCurTheme + "/skins/" + tmpCurskin
									 * +
									 * "/contextmenu/"+("".equals(imgPath)?
									 * ("default/"
									 * +imgIndex+"_wev8.png"):("CM_"
									 * +imgPath+
									 * "_wev8.png"))+"' align='absmiddle'>";
									 * iframeShtml
									 * +="<button  tyle='button' onclick='"
									 * +urlTemp
									 * +"'  style='width:"+(RCMenuWidth
									 * -40)+"px;' title='"
									 * +btnNameTemp+"'>"+btnNameTemp
									 * +"</button>";
									 * iframeShtml+="</nobr></div></div>";
									 */
								} else {

									iframeShtml += "<div id='menuItemDivId"
											+ itemNum
											+ "' unselectable='on' class='b-m-item'  onmouseover=\\\"this.className=\\\'"
											+ "b-m-ifocus"
											+ "\\\'\\\" onmouseout=\\\"this.className=\\\'"
											+ "b-m-item"
											+ "\\\'\\\"   ><div class='b-m-ibody' unselectable='on'><nobr unselectable='on'>";
									if (btnNameTemp
											.equals("\u00e5\u00af\u00bc\u00e5\u0087\u00ba\u00e5\u00ba\u0094\u00e7\u0094\u00a8")) {
										iframeShtml += "<img width=16   src='/wui/theme/"
												+ tmpCurTheme
												+ "/skins/"
												+ tmpCurskin
												+ "/contextmenu/"
												+ ("".equals(imgPath) ? ("CM_icon25_wev8.png")
														: ("default/"
																+ imgIndex + "_wev8.png"))
												+ "' align='absmiddle'>";
									} else if (btnNameTemp
											.equals("\u00e5\u00af\u00bc\u00e5\u0085\u00a5\u00e5\u00ba\u0094\u00e7\u0094\u00a8")) {
										iframeShtml += "<img width=16   src='/wui/theme/"
												+ tmpCurTheme
												+ "/skins/"
												+ tmpCurskin
												+ "/contextmenu/"
												+ ("".equals(imgPath) ? ("CM_icon20_wev8.png")
														: ("default/"
																+ imgIndex + "_wev8.png"))
												+ "' align='absmiddle'>";
									} else {
										iframeShtml += "<img width=16   src='/wui/theme/"
												+ tmpCurTheme
												+ "/skins/"
												+ tmpCurskin
												+ "/contextmenu/"
												+ ("".equals(imgPath) ? ("default/"
														+ imgIndex + "_wev8.png")
														: ("CM_" + imgPath + "_wev8.png"))
												+ "' align='absmiddle'>";
									}
									iframeShtml += "<button  onclick=\\\""
											+ urlTemp
											+ ";parent.hideRightClickMenu();\\\"   style='width:"
											+ (RCMenuWidth - 40)
											+ "px;' title='" + btnNameTemp
											+ "'>" + btnNameTemp
											+ "</button>";
									iframeShtml += "</nobr></div></div>";

								}
							} else {

								if (btnPageName.equals("_table.firstPage")
										|| btnPageName
												.equals("_table.prePage")) {
									iframeShtml += "<button id='menuItemDivId"
											+ itemNum
											+ "' disabled='disabled' UNSELECTABLE='on' class='topClickMenuOut' onmouseover='this.className=\\\"topClickMenuOver\\\"' onmouseout='this.className=\\\"topClickMenuOut\\\"' onclick='"
											+ urlTemp
											+ "' style='width:"
											+ RCMenuWidth
											+ ";height:"
											+ RCMenuHeightStep
											+ "' >&nbsp;<img width='16' src='/wui/theme/"
											+ tmpCurTheme
											+ "/skins/"
											+ tmpCurskin
											+ "/contextmenu/"
											+ ("".equals(imgPath) ? ("default/"
													+ imgIndex + "_wev8.png")
													: ("CM_" + imgPath + "_wev8.png"))
											+ "' border=0 align='absmiddle'>&nbsp;"
											+ btnNameTemp
											+ "&nbsp;</button>";
								} else {
									iframeShtml += "<button id='menuItemDivId"
											+ itemNum
											+ "' UNSELECTABLE='on' class='topClickMenuOut' onmouseover='this.className=\\\"topClickMenuOver\\\"' onmouseout='this.className=\\\"topClickMenuOut\\\"' onclick='"
											+ urlTemp
											+ "' style='height:"
											+ RCMenuHeightStep
											+ "' style='padding-top:2px;'>&nbsp;<img  style='margin-top:-2px;'  width='16'  src='/wui/theme/"
											+ tmpCurTheme
											+ "/skins/"
											+ tmpCurskin
											+ "/contextmenu/"
											+ ("".equals(imgPath) ? ("default/"
													+ imgIndex + "_wev8.png")
													: ("CM_" + imgPath + "_wev8.png"))
											+ "' border=0  style='' align='absmiddle'><span style='padding-top:4px;'>&nbsp;"
											+ btnNameTemp
											+ "&nbsp;</span></button>";
								}
							}
						}
					}
				}
			}
		} else {
			loadRcMenu = false;
			iframeShtml = "";
		}
		int menuCount = (int) (RCMenuHeight / RCMenuHeightStep);
		int RCMenuWidthAll = (int) (menuCount * RCMenuWidth);
		if (userightmenu == 1) {
			iframeShtml += "</div>";
		} else {
			iframeShtml += "</div>";
		}
		int needShow = 0;
		if (loadRcMenu == true) {
			needShow = 1;
		}
		String isEnExtranetHelp = KtreeHelp.isEnableExtranetHelp;

		out.write(_jsp_string1, 0, _jsp_string1.length);
		out.print((needShow));
		out.write(_jsp_string2, 0, _jsp_string2.length);
		out.print((menuCount));
		out.write(_jsp_string3, 0, _jsp_string3.length);
		out.print((RCMenuWidth));
		out.write(_jsp_string4, 0, _jsp_string4.length);
		out.print((RCMenuWidth));
		out.write(_jsp_string5, 0, _jsp_string5.length);
		out.print((RCMenuWidth));
		out.write(_jsp_string6, 0, _jsp_string6.length);
		out.print((RCMenuHeightStep));
		out.write(_jsp_string7, 0, _jsp_string7.length);
		if (loadRcMenu == true) {
			out.write(_jsp_string8, 0, _jsp_string8.length);
		} else {
			out.write(_jsp_string9, 0, _jsp_string9.length);
		}
		out.write(_jsp_string10, 0, _jsp_string10.length);
		out.print((iframeShtml));
		out.write(_jsp_string11, 0, _jsp_string11.length);
		if (!closeRightMenu) {
			out.write(_jsp_string12, 0, _jsp_string12.length);
		}
		out.write(_jsp_string13, 0, _jsp_string13.length);
		out.print((showColMenuIndex));
		out.write(_jsp_string14, 0, _jsp_string14.length);
		if (userightmenu == 0 && loadRcMenu == true) {
			out.write(_jsp_string15, 0, _jsp_string15.length);
		}
		out.write(_jsp_string16, 0, _jsp_string16.length);

		// System.out.println(request.getRequestURI());
		// System.out.println("RCMenuHeight = " + RCMenuHeight);
		// System.out.println("loadRcMenu = " + loadRcMenu);
		if (userightmenu == 1) {
			out.write(_jsp_string17, 0, _jsp_string17.length);
			out.print((RCMenuWidth - 12));
			out.write(_jsp_string18, 0, _jsp_string18.length);
			out.print((RCMenuHeight));
			out.write(_jsp_string19, 0, _jsp_string19.length);
		} else {
			out.write(_jsp_string20, 0, _jsp_string20.length);
			if (loadRcMenu == false) {
				out.write(_jsp_string21, 0, _jsp_string21.length);
			} else {
				out.write(_jsp_string22, 0, _jsp_string22.length);
			}
			out.write(_jsp_string23, 0, _jsp_string23.length);
			out.print((RCMenuWidth - 12));
			out.write(_jsp_string18, 0, _jsp_string18.length);
			out.print((RCMenuHeightStep));
			out.write(_jsp_string24, 0, _jsp_string24.length);
		}
		out.write(_jsp_string25, 0, _jsp_string25.length);
		if (userightmenu == 0 && loadRcMenu == true) {
			out.write(_jsp_string26, 0, _jsp_string26.length);
			out.print((RCMenuHeightStep + 2));
			out.write(_jsp_string27, 0, _jsp_string27.length);
		}
		out.write(_jsp_string28, 0, _jsp_string28.length);

		if (RCMenuHeight == 0) {

			out.write(_jsp_string29, 0, _jsp_string29.length);
		}
		out.write(_jsp_string30, 0, _jsp_string30.length);
		if (userightmenu == 1) {
			out.write(_jsp_string31, 0, _jsp_string31.length);
		}
		out.write(_jsp_string32, 0, _jsp_string32.length);
		out.print((isIEBrowser));
		out.write(_jsp_string33, 0, _jsp_string33.length);
		out.print((closeRightMenu));
		out.write(_jsp_string34, 0, _jsp_string34.length);
		if (userightmenu == 1) {
			out.write(_jsp_string35, 0, _jsp_string35.length);
			if (!closeRightMenu) {
				out.write(_jsp_string36, 0, _jsp_string36.length);
			}
			out.write(_jsp_string37, 0, _jsp_string37.length);
			if (loadRcMenu == true) {
				out.write(_jsp_string38, 0, _jsp_string38.length);
			} else {
				out.write(_jsp_string39, 0, _jsp_string39.length);
			}
			out.write(_jsp_string40, 0, _jsp_string40.length);
		} else {
			out.write(_jsp_string41, 0, _jsp_string41.length);
		}
		out.write(_jsp_string42, 0, _jsp_string42.length);
		out.print((isEnExtranetHelp));
		out.write(_jsp_string43, 0, _jsp_string43.length);
		out.print((KtreeHelp.extranetUrl));
		out.write(_jsp_string44, 0, _jsp_string44.length);

		//
		if (userightmenu != 1) {
			String realPath = "http://" + request.getServerName() + ":"
					+ request.getServerPort() + request.getContextPath()
					+ request.getServletPath();

			if (realPath.indexOf("/workflow/request/AddRequest") != -1
					|| realPath.indexOf("/workflow/request/ManageRequest") != -1
					|| realPath.indexOf("/workflow/request/ViewRequest") != -1) {

				out.write(_jsp_string45, 0, _jsp_string45.length);

			}
		}

		out.write(_jsp_string46, 0, _jsp_string46.length);
		out.print((user.getLanguage()));
		out.write(_jsp_string47, 0, _jsp_string47.length);
		out.print((SystemEnv.getHtmlLabelName(16635, user.getLanguage())));
		out.write(_jsp_string48, 0, _jsp_string48.length);
		out.print((SystemEnv.getHtmlLabelName(2051, user.getLanguage())));
		out.write(_jsp_string49, 0, _jsp_string49.length);
		out.print((SystemEnv.getHtmlLabelName(18481, user.getLanguage())));
		out.write(_jsp_string50, 0, _jsp_string50.length);
		out.print((SystemEnv.getHtmlLabelName(18034, user.getLanguage())));
		out.write(_jsp_string51, 0, _jsp_string51.length);
		out.print((SystemEnv.getHtmlLabelName(18939, user.getLanguage())));
		out.write(_jsp_string52, 0, _jsp_string52.length);
		out.print((SystemEnv.getHtmlLabelName(141, user.getLanguage())));
		out.write(_jsp_string53, 0, _jsp_string53.length);
		out.print((SystemEnv.getHtmlLabelName(6086, user.getLanguage())));
		out.write(_jsp_string54, 0, _jsp_string54.length);
		out.print((SystemEnv.getHtmlLabelName(596, user.getLanguage())));
		out.write(_jsp_string55, 0, _jsp_string55.length);
		out.print((SystemEnv.getHtmlLabelName(602, user.getLanguage())));
		out.write(_jsp_string56, 0, _jsp_string56.length);
		out.print((SystemEnv.getHtmlLabelName(422, user.getLanguage())));
		out.write(_jsp_string57, 0, _jsp_string57.length);
		out.print((SystemEnv.getHtmlLabelName(421, user.getLanguage())));
		out.write(_jsp_string58, 0, _jsp_string58.length);
		out.print((SystemEnv.getHtmlLabelName(71, user.getLanguage())));
		out.write(_jsp_string59, 0, _jsp_string59.length);
	

	}
	


	private final static char[] _jsp_string29;
	private final static char[] _jsp_string50;
	private final static char[] _jsp_string33;
	private final static char[] _jsp_string13;
	private final static char[] _jsp_string39;
	private final static char[] _jsp_string7;
	private final static char[] _jsp_string49;
	private final static char[] _jsp_string53;
	private final static char[] _jsp_string48;
	private final static char[] _jsp_string56;
	private final static char[] _jsp_string47;
	private final static char[] _jsp_string22;
	private final static char[] _jsp_string37;
	private final static char[] _jsp_string30;
	private final static char[] _jsp_string8;
	private final static char[] _jsp_string52;
	private final static char[] _jsp_string5;
	private final static char[] _jsp_string15;
	private final static char[] _jsp_string38;
	private final static char[] _jsp_string36;
	private final static char[] _jsp_string11;
	private final static char[] _jsp_string17;
	private final static char[] _jsp_string0;
	private final static char[] _jsp_string4;
	private final static char[] _jsp_string10;
	private final static char[] _jsp_string12;
	private final static char[] _jsp_string51;
	private final static char[] _jsp_string20;
	private final static char[] _jsp_string6;
	private final static char[] _jsp_string9;
	private final static char[] _jsp_string24;
	private final static char[] _jsp_string27;
	private final static char[] _jsp_string18;
	private final static char[] _jsp_string57;
	private final static char[] _jsp_string44;
	private final static char[] _jsp_string25;
	private final static char[] _jsp_string55;
	private final static char[] _jsp_string46;
	private final static char[] _jsp_string14;
	private final static char[] _jsp_string31;
	private final static char[] _jsp_string23;
	private final static char[] _jsp_string40;
	private final static char[] _jsp_string35;
	private final static char[] _jsp_string59;
	private final static char[] _jsp_string45;
	private final static char[] _jsp_string21;
	private final static char[] _jsp_string58;
	private final static char[] _jsp_string16;
	private final static char[] _jsp_string42;
	private final static char[] _jsp_string43;
	private final static char[] _jsp_string2;
	private final static char[] _jsp_string19;
	private final static char[] _jsp_string28;
	private final static char[] _jsp_string26;
	private final static char[] _jsp_string54;
	private final static char[] _jsp_string1;
	private final static char[] _jsp_string34;
	private final static char[] _jsp_string32;
	private final static char[] _jsp_string41;
	private final static char[] _jsp_string3;
	static {
		_jsp_string29 = "\r\n		return false;\r\n		".toCharArray();
		_jsp_string50 = "\"></td>\r\n							<td><img src=\"/images/messageimages/temp/cowork_wev8.png\" onmouseover=\"javascript:this.src='/images/messageimages/temp/coworkhot_wev8.png';\" onmouseout=\"javascript:this.src='/images/messageimages/temp/cowork_wev8.png';\" onclick=\"javascript:doAddCoWork();\" title=\""
				.toCharArray();
		_jsp_string33 = "\";\r\nvar __closeRightMenu__ = ".toCharArray();
		_jsp_string13 = ">\";\r\n		shtml += shtmlTemp;	\r\n		shtml += \"</body></html>\";\r\n		if(_menuDocument.getElementById(\"rightMenuIframe\")&&_menuDocument.getElementById(\"rightMenuIframe\").contentWindow){\r\n			if(!!_contentWindow){\r\n				//_menuDocument.getElementById(\"rightMenuIframe\").contentWindow.__parent = _contentWindow;\r\n			}\r\n			_menuDocument.getElementById(\"rightMenuIframe\").contentWindow.document.writeln(shtml);\r\n			_menuDocument.getElementById(\"rightMenuIframe\").contentWindow.document.close(); \r\n			try{\r\n			 	if(_menuDocument.getElementById(\"rightMenuIframe\").contentWindow.document.getElementById(\"menuTable\").innerHTML == \"\"){\r\n					_menuDocument.getElementById(\"rightMenu\").style.display = \"none\";\r\n				}\r\n			}catch(e){}\r\n		}\r\n		\r\n		try{\r\n			var pageId = jQuery(\"#pageId\").val();\r\n			if(!pageId || (!!jQuery(\"#pageId\").attr(\"_showCol\") && jQuery(\"#pageId\").attr(\"_showCol\").toLowerCase()==\"false\")){\r\n				hiddenRCMenuItem("
				.toCharArray();
		_jsp_string39 = "\r\n	_menuDocument.getElementById(\"rightMenu\").style.visibility=\"hidden\";\r\n	if (!_menuWindow.ActiveXObject) {\r\n		_menuDocument.getElementById(\"rightMenu\").style.display=\"none\";\r\n	}\r\n	"
				.toCharArray();
		_jsp_string7 = "*lineCount;\r\n	//_menuWindow.status = \"bodyWidth:\"+bodyWidth+\" | menuCountLine:\"+menuCountLine+\" | lineCount:\"+lineCount;\r\n	_menuDocument.getElementById(\"rightMenuIframe\").height = h + \"px\";\r\n\r\n	_menuWindow.frames[\"rightMenuIframe\"]._menuDocument.getElementById(\"menuTable\").style.height = h + \"px\";\r\n	"
				.toCharArray();
		_jsp_string49 = "\"></td>\r\n							<td><img src=\"/images/messageimages/temp/workplan_wev8.png\" onmouseover=\"javascript:this.src='/images/messageimages/temp/workplanhot_wev8.png';\" onmouseout=\"javascript:this.src='/images/messageimages/temp/workplan_wev8.png';\" onclick=\"javascript:doAddWorkPlan();\" title=\""
				.toCharArray();
		_jsp_string53 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result9\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string48 = "\"></td>\r\n							<td><img src=\"/images/messageimages/temp/email_wev8.png\" onmouseover=\"javascript:this.src='/images/messageimages/temp/emailhot_wev8.png';\" onmouseout=\"javascript:this.src='/images/messageimages/temp/email_wev8.png';\" onclick=\"javascript:openemail();\" title=\""
				.toCharArray();
		_jsp_string56 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result11\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string47 = "'\r\n</script>\r\n<script type=\"text/javascript\" src=\"/js/messagejs/highslide/highslide-full_wev8.js\"></script>\r\n<script type=\"text/javascript\" src=\"/js/messagejs/simplehrm_wev8.js\"></script>\r\n<script type=\"text/javascript\" src=\"/js/messagejs/messagejs_wev8.js\"></script>\r\n<script language=\"javascript\" src=\"/qrcode/js/jquery.qrcode-0.7.0_wev8.js\"></script>\r\n<!--[if IE]> \r\n<script src=\"/qrcode/js/html5shiv_wev8.js\"></script>\r\n<script src=\"/qrcode/js/excanvas.compiled_wev8.js\"></script>\r\n<![endif]-->\r\n<script type=\"text/javascript\">\r\n	function getImageResult(o)\r\n	{\r\n		hs.graphicsDir = '/js/messagejs/highslide/graphics/';\r\n		hs.outlineType = 'rounded-white';\r\n		hs.fadeInOut = true;\r\n		hs.headingEval = 'this.a.title';\r\n		var hrefimg = document.getElementById(\"resourceimghref\").href;\r\n		if(hrefimg.indexOf(\"javascript\")!=-1)\r\n		{\r\n			void(0);\r\n			return false;\r\n		}\r\n		else\r\n		{\r\n			return hs.expand(o);\r\n		}\r\n	}\r\n\r\nfunction createQCode(){\r\n	if(jQuery(\"#showSQRCodeDiv\").is(\":hidden\"))\r\n		jQuery(\"#showSQRCodeDiv\").show();\r\n	else\r\n		jQuery(\"#showSQRCodeDiv\").hide();\r\n}\r\n\r\nfunction initSrc(){\r\n	if(jQuery(\"#result2\").html()==\"\u00ef\u00bc\u0088\u00e7\u0094\u00b7\u00ef\u00bc\u0089\"){\r\n		jQuery(\"#resourceimg\").attr(\"src\",\"/images/messageimages/temp/man_wev8.png\");	\r\n		jQuery(\"#resourceimg\").parent().attr(\"href\",\"/images/messageimages/temp/man_wev8.png\");\r\n	}else if(jQuery(\"#result2\").html()==\"\u00ef\u00bc\u0088\u00e5\u00a5\u00b3\u00ef\u00bc\u0089\"){\r\n		jQuery(\"#resourceimg\").attr(\"src\",\"/images/messageimages/temp/women_wev8.png\");	\r\n		jQuery(\"#resourceimg\").parent().attr(\"href\",\"/images/messageimages/temp/women_wev8.png\");\r\n	}\r\n}\r\n</script>\r\n<style type=\"text/css\">\r\n<!--\r\n.STYLE4 {\r\n	FONT-FAMILY: Verdana;\r\n	font-size: 14px;\r\n	cursor: hand;\r\n}\r\n\r\n.STYLE6 {\r\n	FONT-FAMILY: Verdana;\r\n	FONT-SIZE: 12px;\r\n}\r\n\r\n.STYLE61 {\r\n	FONT-FAMILY: Verdana;\r\n	FONT-SIZE: 12px;\r\n	color: #000000;\r\n}\r\n\r\n.simplehrmhead {\r\n	vertical-align:baseline;\r\n}\r\n#mainsupports {\r\n	position: absolute;\r\n	font-size: 12px;\r\n	color: #929393;\r\n	display: none;\r\n	z-index: 1;\r\n}\r\n\r\n#closetext {\r\n	float: right;\r\n	margin-right: 20px;\r\n}\r\n\r\n#mainsupports li a:link {\r\n	color: #2a788e;\r\n	font-size: 12px;\r\n	text-decoration: none;\r\n}\r\n\r\n#mainsupports li a:visited {\r\n	color: #227086;\r\n	font-size: 12px;\r\n	text-decoration: none;\r\n}\r\n\r\n#mainsupports li a:hover {\r\n	color: #FFFFFF;\r\n	font-size: 12px;\r\n	text-decoration: none;\r\n}\r\n\r\n#resourceimg {\r\n	width: 198px;\r\n	height: 293px;\r\n	margin-top: 0px;\r\n}\r\n-->\r\n</style>\r\n<!-- \u00e8\u00bf\u0099\u00e9\u0087\u008c\u00e6\u0094\u00b9\u00e4\u00ba\u0086z-index(+2),\u00e5\u009b\u00a0\u00e4\u00b8\u00baUE\u00e7\u00bc\u0096\u00e8\u00be\u0091\u00e5\u0099\u00a8\u00e4\u00bc\u009a\u00e9\u0081\u00ae\u00e4\u00bd\u008f\u00e5\u00bc\u00b9\u00e7\u00aa\u0097 -->\r\n<div id=\"mainsupports\" style=\"z-index:1999;background-color:#e4e4e4;\">\r\n	<table width=\"455px\" height=\"293px\" border=\"0\" align=\"center\" style=\"vertical-align: middle;\" cellpadding=\"0\" cellspacing=\"0\">\r\n		<tr>\r\n			<td width=\"198px\" valign=\"top\">\r\n				<a id='resourceimghref' href=\"javascript:void(0);\" onclick=\"return getImageResult(this);\" onFocus=\"this.blur()\"><img id='resourceimg' src=\"/images/messageimages/temp/loading_wev8.gif\" border=0 width=\"100%\" height=\"100%\" onError=\"initSrc()\"></a>\r\n				<div style=\"position:absolute;top: 243px;background-image:url('/images/messageimages/temp/divbg_wev8.png');\">\r\n					<table style=\"width: 198px;height: 50px;text-align: center;vertical-align: middle;\">\r\n						<tr>\r\n							<td><img src=\"/images/messageimages/temp/msn_wev8.png\" onmouseover=\"javascript:this.src='/images/messageimages/temp/msnhot_wev8.png';\" onmouseout=\"javascript:this.src='/images/messageimages/temp/msn_wev8.png';\" onclick=\"javascript:openmessage();\" title=\""
				.toCharArray();
		_jsp_string22 = "visible".toCharArray();
		_jsp_string37 = "\r\n	if(isIEBrowser==\"true\"){\r\n		_menuDocument.getElementById(\"rightMenu\").style.left = _menuDocument.body.clientWidth-_menuDocument.getElementById(\"rightMenu\").offsetWidth-200;\r\n	}else{\r\n		_menuDocument.getElementById(\"rightMenu\").style.left = _menuDocument.body.clientWidth-_menuDocument.getElementById(\"rightMenu\").offsetWidth-180;\r\n	}\r\n	_menuDocument.getElementById(\"rightMenu\").style.top = 50;\r\n\r\n	"
				.toCharArray();
		_jsp_string30 = "\r\n		if(typeof(changePageMenuDiaplay)==\"function\"){\r\n			changePageMenuDiaplay(2);\r\n		}\r\n        focus_e = _menuDocument.activeElement;\r\n        var evt = e?e:(_menuWindow.event?_menuWindow.event:null);\r\n        var target = null;\r\n        if(_menuWindow.event){\r\n        	target = evt.srcElement;\r\n        }else{\r\n        	target = evt.target;\r\n        }\r\n        var exceptTop = 0;\r\n        if(jQuery(target).closest(\"div.e8_boxhead\").length==0 && __isParentPage){\r\n        	exceptTop = 60;\r\n        }\r\n		var rightedge=_menuDocument.body.clientWidth-evt.clientX\r\n		var bottomedge=_menuDocument.body.clientHeight-evt.clientY\r\n		var scrolltop =  get_scrollTop_of_body();\r\n		if(__isParentPage){\r\n			scrolltop = 0;\r\n		}\r\n		if(rightedge>evt.clientX){\r\n			jQuery(rightMenuStr,_menuDocument).css(\"left\",_menuDocument.body.clientWidth-rightedge);\r\n		}else{\r\n			jQuery(rightMenuStr,_menuDocument).css(\"left\",evt.clientX-_menuDocument.getElementById(\"rightMenu\").offsetWidth);\r\n		}\r\n		if(bottomedge>evt.clientY){\r\n			jQuery(rightMenuStr,_menuDocument).css(\"top\",evt.clientY+scrolltop+exceptTop);\r\n		}else{\r\n			jQuery(rightMenuStr,_menuDocument).css(\"top\",_menuDocument.body.clientHeight+scrolltop-bottomedge+exceptTop);\r\n		}\r\n		if(_menuDocument.getElementById(\"rightMenu\").offsetHeight>bottomedge){\r\n			    if(evt.clientY>(_menuDocument.body.clientHeight/2)){//\u00e5\u00bd\u0093\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e9\u00ab\u0098\u00e5\u00ba\u00a6\u00e5\u00b0\u008f\u00e4\u00ba\u008e\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e9\u00ab\u0098\u00e5\u00ba\u00a6\u00ef\u00bc\u008c\u00e9\u0082\u00a3\u00e4\u00b9\u0088\u00e5\u009c\u00a8\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e7\u009a\u0084\u00e4\u00b8\u008a\u00e9\u009d\u00a2\u00e4\u00ba\u008c\u00e5\u0088\u0086\u00e4\u00b9\u008b\u00e4\u00b8\u0080\u00e7\u009a\u0084\u00e5\u009c\u00b0\u00e6\u0096\u00b9\u00e7\u0082\u00b9\u00e5\u0087\u00bb\u00ef\u00bc\u008c\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e6\u0098\u00be\u00e7\u00a4\u00ba\u00e4\u00b8\u008a\u00e9\u009d\u00a2\u00e9\u0083\u00a8\u00e5\u0088\u0086\u00ef\u00bc\u008c\u00e5\u009c\u00a8\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e4\u00b8\u008b\u00e9\u009d\u00a2\u00e9\u0083\u00a8\u00e5\u0088\u0086\u00e7\u0082\u00b9\u00e5\u0087\u00bb\u00ef\u00bc\u008c\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e6\u0098\u00be\u00e7\u00a4\u00ba\u00e4\u00b8\u008b\u00e9\u009d\u00a2\u00e9\u0083\u00a8\u00e5\u0088\u0086\r\n					jQuery(rightMenuStr,_menuDocument).css(\"top\",_menuDocument.body.clientHeight+scrolltop-_menuDocument.getElementById(\"rightMenu\").offsetHeight+exceptTop);\r\n			    }\r\n		}\r\n\r\n		_menuDocument.getElementById(\"rightMenu\").style.visibility=\"visible\";\r\n		jQuery(rightMenuStr,_menuDocument).show();	\r\n		try{\r\n			evt.stopPropagation();\r\n		}catch(e){\r\n			evt.cancelBubble = true\r\n			evt.returnValue = false; \r\n		}\r\n		return false;\r\n}\r\nfunction get_scrollTop_of_body(){ \r\n        var scrollTop; \r\n        if(typeof _menuWindow.pageYOffset != 'undefined'){\r\n            scrollTop = _menuWindow.pageYOffset; \r\n        }else if(typeof _menuDocument.compatMode != 'undefined' && _menuDocument.compatMode != 'BackCompat')        { \r\n            scrollTop = _menuDocument.documentElement.scrollTop; \r\n        }else if(typeof _menuDocument.body != 'undefined'){ \r\n            scrollTop = _menuDocument.body.scrollTop; \r\n        } \r\n        return scrollTop; \r\n}\r\nfunction hideRightClickMenu(){\r\n	if(jQuery(\"#modeTitle\",_menuWindow.parent._menuDocument).length>0){\r\n		jQuery(\"#modeTitle\",_menuWindow.parent._menuDocument).parent().css(\"display\",\"none\");\r\n	}			\r\n	"
				.toCharArray();
		_jsp_string8 = "\r\n		var objMenuDiv = _menuDocument.getElementById(\"divTopMenu\");\r\n		if(objMenuDiv!=null){\r\n			objMenuDiv.style.height = h + \"px\";\r\n			//objMenuDiv.style.border = \"1px solid #979797\";\r\n			_menuDocument.getElementById(\"rightMenu\").style.border = \"0px\";\r\n			//_menuDocument.getElementById(\"divTopMenu\").style.weight = bodyWidth+\"px\";\r\n			//_menuWindow._menuDocument.body.style.marginTop = h + \"px\";\r\n		}else{\r\n			_menuDocument.getElementById(\"rightMenu\").style.height = h + \"px\";\r\n			//_menuDocument.getElementById(\"rightMenu\").style.weight = bodyWidth+\"px\";\r\n			_menuWindow._menuDocument.body.style.marginTop = h + \"px\";\r\n		}\r\n	"
				.toCharArray();
		_jsp_string52 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result6\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string5 = ")-1 : Math.ceil(bodyWidth/".toCharArray();
		_jsp_string15 = "\r\n	    try{\r\n		setMenuBoxHeightSelf();\r\n	    }catch(e){}\r\n		"
				.toCharArray();
		_jsp_string38 = "\r\n	_menuDocument.getElementById(\"rightMenu\").style.visibility=\"visible\";\r\n	if (!_menuWindow.ActiveXObject) {\r\n		_menuDocument.getElementById(\"rightMenu\").style.display=\"\";\r\n	}\r\n	"
				.toCharArray();
		_jsp_string36 = "\r\n		_menuDocument.oncontextmenu=showRightClickMenu\r\n		\r\n		_menuDocument.body.onclick = hideRightClickMenu;\r\n	"
				.toCharArray();
		_jsp_string11 = "\";\r\n		if(!!_contentWindow){\r\n			shtmlTemp = shtmlTemp.replace(/\\bparent\\./g,\"__parent.\");\r\n		}\r\n		var shtml = \"<!DOCTYPE HTML><html><head><script>__parent=parent.__parent;<\"+\"/script><link href='/wui/theme/\" + GLOBAL_CURRENT_THEME + \"/skins/\" + GLOBAL_SKINS_FOLDER + \"/contextmenu/contextmenu_wev8.css' rel='stylesheet' type='text/css' /><link rel='stylesheet' href='/css/Weaver_wev8.css'></head><body leftmargin=0 topmargin=0 bottommargin=0 "
				.toCharArray();
		_jsp_string17 = "\r\n<div id=\"rightMenu\" name=\"rightMenu\"  style=\"z-index:99999;position:absolute;\">\r\n<!--//\u00e7\u0094\u00b1\u00e5\u008e\u009f\u00e6\u009d\u00a5\u00e7\u009a\u0084apXPDropDown.class\u00e8\u00bd\u00ac\u00e4\u00b8\u00ba\u00e7\u009b\u00b4\u00e6\u008e\u00a5\u00e7\u0094\u00a8Button\u00ef\u00bc\u008c2003-11-18\u00e6\u009d\u00a8\u00e5\u009b\u00bd\u00e7\u0094\u009f\u00e3\u0080\u0082 -->\r\n<iframe id=\"rightMenuIframe\" name=\"rightMenuIframe\"  frameborder=0 marginheight=0 marginwidth=0 hspace=0 vspace=0 scrolling=no width=\""
				.toCharArray();
		_jsp_string0 = "\r\n\r\n\r\n\r\n".toCharArray();
		_jsp_string4 = ">1 ? Math.ceil(bodyWidth/".toCharArray();
		_jsp_string10 = "\r\n}\r\nvar __parent = window;\r\n\r\nfunction writeIframe(evt,__document,_contentWindow)\r\n{	 try{\r\n		if(!!__document){\r\n			_menuDocument = __document;\r\n			_parentDocument = __document;\r\n			rightMenu = _menuDocument.getElementById(\"rightMenu\");\r\n		}\r\n		if(!!_contentWindow){\r\n			__parent = _contentWindow;\r\n			parent.__parent = _contentWindow;\r\n		}\r\n		var shtmlTemp = \""
				.toCharArray();
		_jsp_string12 = " oncontextmenu='return false'".toCharArray();
		_jsp_string51 = "\"></td>\r\n						</tr>\r\n					</table>\r\n				</div>\r\n			</td>\r\n			<td valign=\"top\">\r\n				<div style=\"position:absolute;top: -17px;left: 438px\">\r\n					<img id=\"closetext\" style=\"cursor: hand;\"src=\"/images/messageimages/temp/closeicno_wev8.png\" onclick=\"javascript:closediv();\"/>\r\n				</div>\r\n				<div id=\"showSQRCodeDiv\" style=\"text-align: left;position:absolute;top: -20px;left: 350px; \" onclick=\"createQCode()\"></div>	\r\n				<table width=\"257px\" height=\"293px\" border=\"0\" style=\"padding-left: 16px;padding-top: 0px\" bgcolor=\"#FFFFFF\" cellpadding=\"0\" cellspacing=\"0\">\r\n					<tr height=\"40px\">\r\n						<td>\r\n							<div>\r\n								<img id=\"isonline\" src=\"/images/messageimages/temp/online_wev8.png\" width=\"19\" height=\"19\" style=\"vertical-align:top;\">&nbsp;<span class=\"STYLE4\" id=\"result1\"></span>&nbsp;<span class=\"STYLE6\" id=\"result2\"></span> &nbsp;<span class=\"STYLE6\" id=\"result13\"></span>&nbsp;&nbsp;&nbsp;&nbsp;\r\n								<img src=\"/images/messageimages/temp/qcode_wev8.png\" width=\"19\" height=\"19\" style=\"vertical-align:middle;cursor: hand;\" onclick=\"createQCode()\">\r\n							</div>\r\n						</td>\r\n					</tr>\r\n					<tr style=\"height:1px!important;\" class=\"Spacing\">\r\n						<td><div class=\"intervalDivClass\"></div></td>\r\n					</tr>\r\n					<tr style=\"height:4px!important;\">\r\n						<td></td>\r\n					</tr>\r\n					<tr>\r\n						<td>\r\n							<table height=\"203px\">\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string20 = "\r\n	<div id=\"rightMenu\" name=\"rightMenu\" class=\"topmenuTable\" style=\"position:absolute;padding:3px;left:0px;right:6px;top:0px;margin-top:0px;posTop:0px;position:absolute;visibility:"
				.toCharArray();
		_jsp_string6 = ");\r\n	var lineCount = Math.ceil(menuCount/menuCountLine);\r\n	var h = "
				.toCharArray();
		_jsp_string9 = "\r\n	try{\r\n		_menuDocument.getElementById(\"divTopMenu\").style.border = \"0px\";\r\n	}catch(e){}\r\n	try{\r\n		_menuDocument.getElementById(\"rightMenu\").style.border = \"0px\";\r\n	}catch(e){}\r\n	"
				.toCharArray();
		_jsp_string24 = "px\">\r\n		</iframe>\r\n	</div>\r\n".toCharArray();
		_jsp_string27 = "px\";\r\n	}\r\n	else\r\n	{\r\n		objRightMenuDiv.style.visibility = \"visible\";\r\n		//jQuery(objRightMenuDiv).show();\r\n		objRightMenuDiv.style.position = \"absolute\";\r\n	}\r\n}\r\n//\u00e8\u00a7\u00a3\u00e5\u0086\u00b3\u00e6\u0096\u00b0\u00e6\u00b5\u0081\u00e7\u00a8\u008b\u00e7\u0095\u008c\u00e9\u009d\u00a2\u00e5\u009c\u00a8\u00e5\u008a\u00a0\u00e8\u00bd\u00bd\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e6\u0097\u00b6\u00ef\u00bc\u008c\u00e4\u00bc\u009a\u00e5\u0087\u00ba\u00e7\u008e\u00b0\u00e9\u00a1\u00b6\u00e9\u0083\u00a8\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e5\u0085\u0088\u00e5\u0087\u00ba\u00e7\u008e\u00b0\u00e5\u0086\u008d\u00e6\u00b6\u0088\u00e5\u00a4\u00b1\u00e7\u009a\u0084\u00e9\u0097\u00ae\u00e9\u00a2\u0098 End\r\n</script>\r\n<script language=\"JavaScript\">\r\ndoMenuInit();\r\nfunction doMenuInit(){\r\n	var objRightMenuDiv = _menuDocument.getElementById(\"rightMenu\");\r\n	var objhasTopTitleExtInput = _menuDocument.getElementById(\"hasTopTitleExtInput\");\r\n	if(objhasTopTitleExtInput!=null && objhasTopTitleExtInput.value==\"1\"){\r\n		try{\r\n			objRightMenuDiv.style.position = \"relative\";\r\n			objRightMenuDiv.style.height = \"0px\";\r\n			objRightMenuDiv.style.display = \"none\";\r\n		}catch(e){}\r\n	}else{\r\n		try{\r\n			var objMenuDiv = _menuDocument.getElementById(\"divTopMenu\");\r\n			var rightMenuIframe = _menuDocument.getElementById(\"rightMenuIframe\");\r\n			if(objMenuDiv!=null){\r\n				if(rightMenuIframe!=null){\r\n					objMenuDiv.appendChild(rightMenuIframe);\r\n				}\r\n				objRightMenuDiv.style.position = \"relative\";\r\n				objRightMenuDiv.style.height = \"0px\";\r\n				objRightMenuDiv.style.display = \"none\";\r\n			}else{\r\n				if(rightMenuIframe!=null){\r\n					objRightMenuDiv.appendChild(rightMenuIframe);\r\n					needShow = true;\r\n				}\r\n			}\r\n		}catch(e){}\r\n	}\r\n}\r\n"
				.toCharArray();
		_jsp_string18 = "px\" height=\"".toCharArray();
		_jsp_string57 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result3\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string44 = "';\r\n    }\r\n    window.open(operationPage+\"?pathKey=\"+pathKey,\"_blank\",\"top=0,left=\"+(screenWidth-800)/2+\",height=\"+(screenHeight-90)+\",width=1000,status=no,scrollbars=yes,toolbar=yes,menubar=no,location=no\");\r\n}\r\n</script>\r\n"
				.toCharArray();
		_jsp_string25 = "\r\n<script language=\"JavaScript\">\r\n//\u00e8\u00a7\u00a3\u00e5\u0086\u00b3\u00e6\u0096\u00b0\u00e6\u00b5\u0081\u00e7\u00a8\u008b\u00e7\u0095\u008c\u00e9\u009d\u00a2\u00e5\u009c\u00a8\u00e5\u008a\u00a0\u00e8\u00bd\u00bd\u00e9\u00a1\u00b5\u00e9\u009d\u00a2\u00e6\u0097\u00b6\u00ef\u00bc\u008c\u00e4\u00bc\u009a\u00e5\u0087\u00ba\u00e7\u008e\u00b0\u00e9\u00a1\u00b6\u00e9\u0083\u00a8\u00e8\u008f\u009c\u00e5\u008d\u0095\u00e5\u0085\u0088\u00e5\u0087\u00ba\u00e7\u008e\u00b0\u00e5\u0086\u008d\u00e6\u00b6\u0088\u00e5\u00a4\u00b1\u00e7\u009a\u0084\u00e9\u0097\u00ae\u00e9\u00a2\u0098 Start\r\nvar needShow = false;\r\nvar rightMenuStr=\"#rightMenu\";\r\nvar rightMenu = _menuDocument.getElementById(\"rightMenu\");\r\n"
				.toCharArray();
		_jsp_string55 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result7\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string46 = "\r\n\r\n\r\n\r\n\r\n<script type=\"text/javascript\">\r\n//\u00e7\u0094\u00a8\u00e6\u0088\u00b7\u00e8\u00af\u00ad\u00e8\u00a8\u0080\r\nvar languageid = '"
				.toCharArray();
		_jsp_string14 = ");\r\n			}\r\n		}catch(e){}\r\n		".toCharArray();
		_jsp_string31 = "\r\n	try{\r\n		_menuDocument.getElementById(\"rightMenu\").style.visibility=\"hidden\";\r\n	}catch(e){}\r\n	//rightMenu.style.display=\"\"; //update by liaodong for qc62834 in 20130913\r\n	jQuery(rightMenuStr).hide();\r\n	"
				.toCharArray();
		_jsp_string23 = ";display:none;\" align=\"left\"  allowtransparency=\"true\" style=\"background-color:transparent\" >\r\n	</div>\r\n	<div id=\"divRightMenuIframe\" name=\"divRightMenuIframe\" style=\"display:none\">\r\n		<iframe id=\"rightMenuIframe\" name=\"rightMenuIframe\" frameborder=0 marginheight=0 marginwidth=0 hspace=0 vspace=0 scrolling=no width=\""
				.toCharArray();
		_jsp_string40 = "\r\n".toCharArray();
		_jsp_string35 = "\r\n	_menuDocument.getElementById(\"rightMenu\").className = \"clickRightMenu\";\r\n	"
				.toCharArray();
		_jsp_string59 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result5\"></span>\r\n									</td>\r\n								</tr>\r\n							</table>\r\n						</td>\r\n					</tr>\r\n					<tr height=\"42px\">\r\n						<td align=\"right\" valign=\"middle\" style=\"padding-right: 12px\">\r\n							<span class=\"STYLE6\" id=\"result0\"></span>\r\n						</td>\r\n					</tr>\r\n				</table>\r\n			</td>\r\n		</tr>\r\n	</table>\r\n</div>\r\n"
				.toCharArray();
		_jsp_string45 = "\r\n		<script type=\"text/javascript\">\r\n\r\n			jQuery(\"#divTopMenu\").hide();\r\n			jQuery(\"#rightMenu\",_menuDocument).hide();\r\n		\r\n		</script>\r\n		"
				.toCharArray();
		_jsp_string21 = "hidden".toCharArray();
		_jsp_string58 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result4\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string16 = "\r\n		_menuWindow.setTimeout(function(){\r\n			try{\r\n				var menuCount = 0;\r\n				jQuery(\"#menuTable\", _menuDocument.getElementById(\"rightMenuIframe\").contentWindow.document).children().each(function () {\r\n				if (!jQuery(this).css(\"display\") || jQuery(this).css(\"display\").toLowerCase() != \"none\") {\r\n					menuCount++;\r\n				}\r\n			});\r\n			jQuery(\"#rightMenuIframe\",_menuDocument).css(\"height\", (menuCount * 22+6) + \"px\");\r\n			}catch(e){\r\n			}\r\n		},2000);\r\n	}catch(e){\r\n		if(window.console)console.log(e,\"RightClickMenu.jsp#writeIframe\");\r\n	}\r\n}\r\n\r\n\r\n\r\n//\u00e7\u0094\u00b1\u00e5\u008e\u009f\u00e6\u009d\u00a5\u00e7\u009a\u0084apXPDropDown.class\u00e8\u00bd\u00ac\u00e4\u00b8\u00ba\u00e7\u009b\u00b4\u00e6\u008e\u00a5\u00e7\u0094\u00a8Button\u00ef\u00bc\u008c2003-11-18\u00e6\u009d\u00a8\u00e5\u009b\u00bd\u00e7\u0094\u009f\u00e3\u0080\u0082 end\r\n\r\n</script>\r\n"
				.toCharArray();
		_jsp_string42 = "\r\n//alert(rightMenu.style.visibility);\r\n//alert(rightMenu.innerHTML);\r\n\r\n function viewSourceUrl()\r\n{\r\n\r\n    prompt(\"\",location);\r\n\r\n}\r\nvar mouse_event;\r\nfunction onRCMenu_copy(){\r\n	var copy_text = _menuDocument.selection.createRange().text;\r\n	//alert(copy_text);\r\n	try{\r\n		if(copy_text==''){\r\n			copy_text = doccontentifm._menuDocument.selection.createRange().text;\r\n		}\r\n	}catch(e){\r\n		copy_text = ShowSelection();\r\n	}\r\n	_menuWindow.clipboardData.setData(\"Text\", copy_text);\r\n	_menuDocument.getElementById(\"rightMenu\").style.visibility=\"hidden\";\r\n	//rightMenu.style.display=\"none\";\r\n}\r\n\r\nfunction ShowSelection()    {\r\n	if(_menuDocument.getElementById('FCKiframefieldid')){\r\n		 return _menuDocument.getElementById(_menuDocument.getElementById('FCKiframefieldid').value).contentWindow.document.selection.createRange().text;       \r\n	}else{\r\n		return \"\";\r\n	}\r\n}\r\n\r\nfunction onRCMenu_plaster(){\r\n\r\n	if(_menuWindow.clipboardData.getData(\"Text\") != null){\r\n		try{\r\n			var plaster_text = _menuWindow.clipboardData.getData(\"Text\");\r\n			//e = _menuDocument.activeElement;\r\n			//e = body.focus;\r\n            //alert(focus_e.tagName);\r\n			if((focus_e && focus_e.tagName==\"INPUT\" && focus_e.type==\"text\")||(focus_e && focus_e.tagName==\"TEXTAREA\")){\r\n				var selectText = getSelectTxt();\r\n				var pos = getCursorPos(focus_e);\r\n				if(pos==0){\r\n					focus_e.value=focus_e.value.replace(selectText,\"\");\r\n					focus_e.value = plaster_text+focus_e.value;\r\n				}else if(pos==focus_e.value.length){\r\n					focus_e.value=focus_e.value.replace(selectText,\"\");\r\n					focus_e.value = focus_e.value+plaster_text;\r\n				}else if(pos>0&&pos<focus_e.value.length){\r\n					focus_e.value=focus_e.value.replace(selectText,\"\");\r\n					var tmp1 = focus_e.value.substring(0,pos);\r\n					var tmp2 = focus_e.value.substring(pos,focus_e.value.length);\r\n					focus_e.value = tmp1+plaster_text+tmp2;\r\n				}\r\n				\r\n			}\r\n			_menuDocument.getElementById(\"rightMenu\").style.visibility=\"hidden\";\r\n			_menuDocument.getElementById(\"rightMenu\").style.display=\"none\";\r\n		}catch(e){\r\n			alert(e)\r\n        }\r\n	}\r\n}\r\n\r\nfunction getSelectTxt(){\r\n	var selectTxt;\r\n	selectTxt=document.selection.createRange().text;    \r\n	return selectTxt;\r\n}\r\n\r\nfunction getCursorPos(obj)     \r\n{   \r\n	obj.focus();   \r\n	var currentRange=document.selection.createRange();   \r\n	var workRange=currentRange.duplicate();   \r\n	obj.select();   \r\n	var allRange=document.selection.createRange();   \r\n	var pos=0;   \r\n	while(workRange.compareEndPoints(\"StartToStart\",allRange)>0)   \r\n	{   \r\n	  workRange.moveStart(\"character\",-1);   \r\n	  pos++;   \r\n	}   \r\n	currentRange.select();   \r\n	return   pos;   \r\n}   \r\nfunction getCursorPos1(inpObj){\r\n    if(navigator.userAgent.indexOf(\"MSIE\") > -1) { // IE\r\n    		alert(\"ie\")\r\n            var range = document.selection.createRange();\r\n            range.text = '';\r\n            alert(inpObj.createTextRange())\r\n            range.setEndPoint('StartToStart',inpObj.createTextRange());\r\n            return range.text.length;\r\n        } else {\r\n            return inpObj.selectionStart;\r\n        }\r\n}\r\n\r\nfunction showTDTitle(o)\r\n{\r\n	o.title = o.innerText;\r\n}\r\n//\u00e6\u0098\u00be\u00e7\u00a4\u00ba\u00e6\u008c\u0087\u00e5\u00ae\u009a\u00e5\u00ba\u008f\u00e5\u008f\u00b7\u00e7\u009a\u0084\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e8\u008f\u009c\u00e5\u008d\u0095 luow TD30081 TD30084\r\nfunction showRCMenuItem(menuIntemIndex){\r\n	var rightMenuIframeDocument = _menuDocument.getElementById(\"rightMenuIframe\").contentWindow.document;\r\n	rightMenuIframeDocument.getElementById('menuItemDivId'+menuIntemIndex).style.display=\"\";\r\n	var menuCount = 0; \r\n	jQuery(\"#menuTable\", rightMenuIframeDocument).children().each(function () {\r\n		if (jQuery(this).css(\"display\") != null && jQuery(this).css(\"display\").toLowerCase() != \"none\") {\r\n			menuCount++;\r\n		}\r\n	});\r\n	\r\n	\r\n	jQuery(\"#rightMenuIframe\").css(\"height\", (menuCount * 22+6) + \"px\");\r\n}\r\n//\u00e9\u009a\u0090\u00e8\u0097\u008f\u00e6\u008c\u0087\u00e5\u00ae\u009a\u00e5\u00ba\u008f\u00e5\u008f\u00b7\u00e7\u009a\u0084\u00e5\u008f\u00b3\u00e9\u0094\u00ae\u00e8\u008f\u009c\u00e5\u008d\u0095 luow TD30081 TD30084\r\nfunction hiddenRCMenuItem(menuIntemIndex){	\r\n	var rightMenuIframeDocument = _menuDocument.getElementById(\"rightMenuIframe\").contentWindow.document;\r\n	\r\n	jQuery(\"#menuItemDivId\"+menuIntemIndex,rightMenuIframeDocument).hide();\r\n	\r\n	var menuCount = 0; \r\n	jQuery(\"#menuTable\", rightMenuIframeDocument).children().each(function () {\r\n		if (!jQuery(this).css(\"display\") || jQuery(this).css(\"display\").toLowerCase() != \"none\") {\r\n			menuCount++;\r\n		}\r\n	});\r\n	\r\n	jQuery(\"#rightMenuIframe\").css(\"height\", (menuCount * 22+6) + \"px\");\r\n}\r\n\r\n//writeIframe();\r\n    if (_menuWindow.addEventListener){\r\n	    _menuWindow.addEventListener(\"load\", writeIframe, false);\r\n	}else if (_menuWindow.attachEvent){\r\n	    _menuWindow.attachEvent(\"onload\", writeIframe);\r\n	}else{\r\n	    _menuWindow.onload=writeIframe;\r\n	}\r\nfunction __openFavouriteBrowser(flag) {\r\n	___openFavouriteBrowser(flag);\r\n}\r\n\r\nfunction __showHelp(flag) {\r\n	if (typeof(showHelp) == 'function') {\r\n		showHelp();\r\n	} else {\r\n		___showHelp(flag);\r\n	}\r\n}\r\n\r\nfunction ___openFavouriteBrowser(flag) {  \r\n	var BacoTitle = parent.jQuery(\"#objName\");\r\n	if (!!!BacoTitle[0]) {\r\n		BacoTitle = parent.jQuery(\"#e8_navtab\");\r\n	}\r\n	var pagename = \"\";\r\n	\r\n	var fav_uri = \"\";\r\n	var fav_querystring = \"\";\r\n	\r\n	var __url = parent.window.location.href;\r\n	try {\r\n		var __regexp = new RegExp(\"http://[^/]+\", \"gmi\");\r\n		__url = __url.replace(__regexp, '');\r\n	} catch (e) {\r\n	}\r\n	if (__url.indexOf(\"?\") == -1) {\r\n		fav_uri = __url;\r\n	} else {\r\n		fav_uri = escape(__url.substring(0, __url.indexOf(\"?\")));\r\n		fav_querystring = escape(escape(__url.substr(__url.indexOf(\"?\") + 1)));\r\n	}\r\n	try {\r\n		var e8tabcontainer = jQuery(\"div[_e8tabcontainer='true']\",parent.document);\r\n		if(e8tabcontainer.length > 0)  {\r\n		    fav_uri = escape(parent.window.location.pathname);\r\n			fav_querystring = (escape(jQuery.trim(parent.window.location.search)));\r\n		}\r\n	} catch(e) {}\r\n	if (BacoTitle) {\r\n		pagename = BacoTitle.text();\r\n	}\r\n	\r\n	if (flag == -9) {\r\n		var __reqname = jQuery(\"input[name=requestname]\").val();\r\n		if (!!__reqname && __reqname != \"\") {\r\n			pagename = __reqname;\r\n		}\r\n	}\r\n	pagename = escape(jQuery.trim(pagename)); \r\n	\r\n	var dialogurl = '/systeminfo/BrowserMain.jsp?url=/favourite/FavouriteBrowser.jsp&fav_pagename='+pagename+'&fav_uri='+fav_uri+'&fav_querystring='+fav_querystring+'&mouldID=doc';\r\n	var dialog = new window.top.Dialog();\r\n	dialog.currentWindow = window;\r\n	dialog.URL = dialogurl;\r\n	dialog.Title = \"\u00e6\u0094\u00b6\u00e8\u0097\u008f\u00e5\u00a4\u00b9\";\r\n	dialog.Width = 550 ;\r\n	dialog.Height = 600;\r\n	dialog.Drag = true;\r\n	dialog.show();\r\n}\r\n\r\nfunction ___showHelp(flag){\r\n    /*var pathKey = this.location.pathname;\r\n    //alert(pathKey);\r\n    if(pathKey!=\"\"){\r\n        pathKey = pathKey.substr(1);\r\n    }*/\r\n    var pathKey = \"\";\r\n	var __url = this.location.href;\r\n	try {\r\n		var __regexp = new RegExp(\"http://[^/]+\", \"gmi\");\r\n		__url = __url.replace(__regexp, '');\r\n	} catch (e) {}\r\n	pathKey = encodeURIComponent(__url);\r\n    var operationPage = \"http://help.e-cology.com.cn/help/RemoteHelp.jsp\";\r\n    var screenWidth = window.screen.width*1;\r\n    var screenHeight = window.screen.height*1;\r\n    var isEnableExtranetHelp = "
				.toCharArray();
		_jsp_string43 = ";\r\n    if(isEnableExtranetHelp==1){\r\n    	//operationPage = \"/formmode/apps/ktree/ktreeHelp.jsp\";\r\n    	operationPage = '"
				.toCharArray();
		_jsp_string2 = "\">\r\n\r\n<script language=\"JavaScript\">\r\nvar _parentmenuDocument = document;\r\nvar _menuDocument = document;\r\nvar _menuWindow = window;\r\nvar __isReloadPage = true;\r\nvar __isParentPage = false;\r\n//\u00e5\u00bd\u0093\u00e5\u0089\u008d\u00e4\u00bd\u00bf\u00e7\u0094\u00a8\u00e7\u009a\u0084\u00e4\u00b8\u00bb\u00e9\u00a2\u0098\r\nvar GLOBAL_CURRENT_THEME = \"ecology8\";\r\n//\u00e5\u00bd\u0093\u00e5\u0089\u008d\u00e4\u00b8\u00bb\u00e9\u00a2\u0098\u00e4\u00bd\u00bf\u00e7\u0094\u00a8\u00e7\u009a\u0084\u00e7\u009a\u00ae\u00e8\u0082\u00a4\r\nvar GLOBAL_SKINS_FOLDER = \"default\";\r\nfunction setMenuBoxHeightSelf(){\r\n	try{\r\n		var objhasTopTitleExtInput = _menuDocument.getElementById(\"hasTopTitleExtInput\");\r\n		if(objhasTopTitleExtInput!=null && objhasTopTitleExtInput.value==\"1\"){\r\n			_menuDocument.getElementById(\"rightMenu\").style.visibility = \"hidden\";\r\n			_menuDocument.getElementById(\"rightMenu\").style.display=\"none\";\r\n		}\r\n	}catch(e){}\r\n	var menuCount = \""
				.toCharArray();
		_jsp_string19 = "px\">\r\n</iframe>\r\n</div>\r\n".toCharArray();
		_jsp_string28 = "\r\n\r\n\r\nfunction showRightClickMenuByHand(_left,_top){\r\n	if(__isParentPage){\r\n		_top += 60;\r\n		_top -= jQuery(document).scrollTop();\r\n	}\r\n	jQuery(\"#rightMenu\",_menuDocument).css(\"left\", _left);\r\n	jQuery(\"#rightMenu\",_menuDocument).css(\"top\", _top);\r\n	jQuery(\"#rightMenu\",_menuDocument).css(\"visibility\", \"visible\");\r\n	jQuery(\"#rightMenu\",_menuDocument).show();	\r\n}\r\n\r\nvar focus_e;\r\nfunction showRightClickMenu(e){\r\n		"
				.toCharArray();
		_jsp_string26 = "\r\n</script>\r\n<script language=\"JavaScript\" defer>\r\nonSetRightMenu();\r\n\r\n//alert(_menuDocument.body.onload);\r\n//alert(_menuWindow.onload);\r\n\r\nfunction onSetRightMenu(){\r\n	var objRightMenuDiv = _menuDocument.getElementById(\"rightMenu\");\r\n	var objMenuDiv = _menuDocument.getElementById(\"divTopMenu\");\r\n	var objhasTopTitleExtInput = _menuDocument.getElementById(\"hasTopTitleExtInput\");\r\n	var toolbarmenudiv = parent._menuDocument.getElementById(\"toolbarmenudiv\");\r\n	if(needShow==true && objMenuDiv==null && objhasTopTitleExtInput==null&&toolbarmenudiv!=null){\r\n		jQuery(objRightMenuDiv).hide();\r\n		objRightMenuDiv.style.visibility = \"hidden\";\r\n		objRightMenuDiv.style.position = \"absolute\";\r\n		//objRightMenuDiv.style.height = \""
				.toCharArray();
		_jsp_string54 = "&nbsp;:&nbsp;&nbsp;&nbsp;</span>\r\n										<span class=\"STYLE61\" id=\"result10\"></span>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td style=\"WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;\">\r\n										<span class=\"STYLE6\">"
				.toCharArray();
		_jsp_string1 = "\r\n<input type=\"hidden\" id=\"needShow\" name=\"needShow\" value=\""
				.toCharArray();
		_jsp_string34 = ";\r\n	".toCharArray();
		_jsp_string32 = "\r\n}\r\n\r\nvar isIEBrowser =\"".toCharArray();
		_jsp_string41 = "\r\n\r\n".toCharArray();
		_jsp_string3 = "\";\r\n	var bodyWidth = _menuWindow._menuDocument.body.offsetWidth;\r\n	var menuCountLine = bodyWidth/"
				.toCharArray();
	}

}
